package com.drama.outtake.dto;

import com.drama.outtake.domain.User;
import com.drama.outtake.domain.enums.Gender;

import java.time.LocalDate;

/**
 * @Author : 李先均
 * @Date 2023/3/4 22:10
 */
public class UserDto {
    private Long id;
    private String avatar;
    private String name;
    private Gender gender;
    private LocalDate birthDay;

    public User convertToUser() {
        return User.builder()
                .id(id)
                .avatar(avatar)
                .name(name)
                .gender(gender)
                .birthDay(birthDay)
                .build();
    }
}
